home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
usr
/
include
/
ewl
/
ewl_check.h
< prev
next >
Wrap
C/C++ Source or Header
|
2006-01-09
|
1KB
|
60 lines
#ifndef _EWL_CHECK_H_
#define _EWL_CHECK_H_
/**
* @file ewl_check.h
*
* @defgroup Ewl_Check Check: The Simple Check for a Checkbutton
* Defines a widget with single purpose of providing a button with a checked
* state, without any extra decorating.
*
* @{
*/
/**
* @themekey /check/file
* @themekey /check/group
*/
/**
* A single purpose extension of Ewl_Widget to provide a checked state.
*/
typedef struct Ewl_Check Ewl_Check;
/**
* @def EWL_CHECK(c)
* Typecasts a pointer to an Ewl_Check pointer.
*
* @{
*/
#define EWL_CHECK(c) ((Ewl_Check *)c)
/**
* @struct Ewl_Check
* Inherits from Ewl_Check and extends it to provide a checked state.
*/
struct Ewl_Check
{
Ewl_Widget w; /**< Inherit from Ewl_Widget */
int checked; /**< Indicates if this is checked */
};
Ewl_Widget *ewl_check_new(void);
int ewl_check_init(Ewl_Check *c);
int ewl_check_is_checked(Ewl_Check *c);
void ewl_check_checked_set(Ewl_Check *c, int checked);
/*
* Internally used callbacks.
*/
void ewl_check_clicked_cb(Ewl_Widget *w, void *ev_data,
void *user_data);
void ewl_check_update_check_cb(Ewl_Widget *w, void *ev_data,
void *user_data);
/**
* @}
*/
#endif